**************************************************************************
*This file builds measures of robot exposure by origin and destination CZ*
**************************************************************************

*Origin
use "$final_data_automation/czones_ExposureAutomation.dta", clear
rename czone fromczone

rename (expof_us_adj expof_euro7_qo) (expof_us_adj_origin expof_euro7_origin)

save "$final_data_automation/czones_ExposureRobotsOrigin.dta", replace

*Destination
use "$final_data_automation/czones_ExposureAutomation.dta", clear
rename czone toczone

rename (expof_us_adj expof_euro7_qo) (expof_us_adj_destination expof_euro7_destination)

save "$final_data_automation/czones_ExposureRobotsDestination.dta", replace
